#include "Avalon/Network/DatagramPacket.hpp"

using namespace Avalon;
using namespace Avalon::IO;
using namespace Avalon::Network;

DatagramPacket::DatagramPacket()
    : m_size(0) {}

DatagramPacket::DatagramPacket(int size, const Buffer& data,
    const IpAddress& address)
    : m_size(size),
      m_data(data),
      m_address(address) {}

int DatagramPacket::GetSize() const {
  return m_size;
}

const Buffer& DatagramPacket::GetData() const {
  return m_data;
}

const IpAddress& DatagramPacket::GetAddress() const {
  return m_address;
}
